Convert a string to a hex string.
#include <String.au3>
_StringToHex("string")
Parameters
string
Return Value
Success: | Returns an hex string. |
Failure: | Returns -1 and sets @error to 1. |
Remarks
None.
Related
_HexToString
Example
#include <string.au3>
$String = "I like AutoIt3"
$Hex = _StringToHex($String)
MsgBox(0, "Hex", "Original String: " & $String & @LF & " Hex: " & $Hex)
$Hex = "49206C696B65204175746F497433"
$String = _HexToString($Hex)
MsgBox(0, "Hex", "Original Hex: " & $Hex & @LF & " String: " & $String)